﻿<?php

$array=array('pw01'=>84,'pw02'=>82,'pw03'=>78,'pw04'=>81,'pw05'=>83,'pw06'=>79,'pw07'=>85,'pw08'=>78,'pw09'=>80,'pw10'=>'缺席','pw11'=>88,'pw12'=>81,'pw13'=>'缺席','pw14'=>89,'pw15'=>78);
$array1=array('pw01'=>80,'pw02'=>80,'pw03'=>80,'pw04'=>80,'pw05'=>80,'pw06'=>80,'pw07'=>80,'pw08'=>80,'pw09'=>80,'pw10'=>80,'pw11'=>80,'pw12'=>80,'pw13'=>80,'pw14'=>80,'pw15'=>80);

var_dump($array);
var_dump($array1);

$num=count($array);
echo $num;



$quexi=array_keys($array,'缺席');
var_dump($quexi);
$num1=count($quexi);
for($i=0;$i<$num1;$i++)
{

	$array1[$quexi[$i]]=$array1[$quexi[$i]]-5;

}

//var_dump($array1);


?>